home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
text
/
print
/
2print.lzh
/
2print.readme
< prev
Wrap
Text File
|
1993-11-16
|
6KB
|
168 lines
2Print 1.0 by Rajesh Goel
(C) Copyright FrosyByte Consultants, NYC, 1993
2Print is a simple little utility for HP Laserjets and other
printers that support the HP-PCL language. It's only goal in life is to
print either
- 1 166 chars x 66 line page or
- 2 80 x 66 line pages per sheet.
Yes I know that there are other such products in Amigaland and they
have GUIs, bells & whistles, etc. and they support every printer under the
sun *BUT* they are slow because they have to go through the printer.device
whereas 2print's output has to be redirected to file or PAR: for printing.
By accessing the printer directly, the speed increase is incredible
because all you are transferring is the ASCII text (haven't tested with
non-American English text because I am an ignorant American who wouldn't
know what to do with an umlat if it hit me in the head ;-) ).
The major reason I wrote this puppy was because I like to nest my
code and attach comments where necessary...usually at the end of the line.
While indented nesting is great coding practice (not to mention a
neat little bug-swatter), it does produce lines that are more than 80 chars
in length and I *HATE* reading line-wrapped code. I want to see it all (or
as much as I can) as a single line/object...no split variables for
me...I've got enough bugs already.
The other reason for it's birth is that I've become an
etext-junkie. Nothing like FTP'ing a good classic or two...and printing
them out wastes a LOT of paper. By printing 2 pages per sheet, I can halve
my printing costs *AND* reduce the weight.
By printing half the pages and then flipping the pages over, I
reduce my paper costs by 75%....the weight goes down accordingly too.
USAGE
=====
2print FILE S=# E=# W=# M=# >output
FILE Name of textfile to print
S=<starting Page> Start printing from which page
E=<ending page> End "" at "" "
W=<width> 1 or 2...
1 = 166 columns x 66 lines
2 = 80 "" x 66 ""
M=<Middle Bar> 0, >0
0 = don't print line in middle of page
1 = print line in middle of page
output par: prints to parallel port
OUTFILE prints to a text file
EXAMPLES
========
2print s:Startup-sequence >par:
will print s:startup-sequence to parallel port
starting at page 1, ending at the last page
2 pages per sheet
middle bar printed to seperate the pages
looks something like this:
+----------+----------+
| | |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| | |
+----------+----------+
filename...page #
2print MyBuggyCode.c w=1 m=0 >par:
prints MyBuggyCode.c to the Parallel port
1 wide page per sheet
NO Separator bar/line
looks something like this:
+---------------------+
| |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| |
+---------------------+
filename...page #
2print Hamlet.txt s=1 e=5 >Hamlet1-5
prints the FIRST 10 PAGES of Hamlet to a file called
Hamlet1-5
Note that the default settings are 2 PAGES PER SHEET
therefore, we have just written the first 660 LINES
(66 Lines/page x 2 pages/sheet x 5 sheets) to the
output file.
2print ABigTextFile.tct s=1 E=1 >foo
prints the FIRST 2 PAGES (or 1 SHEET) from ABigTextFile.txt
to a file called foo.
Here's what I generally do when I want to (ab)use the University's
Laser Printer to printout important stuff like the JargonFile or Dracula:
At home, I create several output files. Each holds 10 sheets or
so...that's just so that the sysadmins or other lan-nazi's don't flame me
for abusing the FREE USER accounts...i.e.
2print Jargonfile >foo
; this will tell me how many sheets will be printed
delete foo ; don't need that file anymore
2print Jargonfile S=1 E=10 >j1
2print Jargonfile S=11 E=20 >j2
2print Jargonfile S=21 E=30 >j3
2print Jargonfile S=31 E=40 >j3
2print Jargonfile S=41 E=50 >j3
2print Jargonfile S=51 E=60 >j3
copy j* pc0: ; stick them on a PC floppy for school
at school,
copy j1 lpt1:
sometime later
copy j2 lpt1:
.
.
.
ERRATA
======
Send all bugs, flames, cash, blondes, beer, postcards, etc. to:
Raj Goel
87-90 118 Street <= SNAIL mail
Richmond Hill, NY 11418
rajesh.goel@factory.com <= Email
Oh yeah, pass it around, it's free...almost. You use it, you gotta
send me something...
something == [ Email | Postcards | Bugs | Wishlists | Whatever ]
Fred Fish and others of his ilk (Walnut Creek CDROM, etc) are
EXPRESSLY AUTHORIZED to spread this stuff all over the galaxy. Go ahead,
make me famous.